package com.lam.mall.entity;

import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.Null;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lam.common.base.domain.BaseEntity;
import com.lam.common.components.dict.annotation.Dict;
import com.lam.common.validate.annotation.DictValid;
import com.lam.common.validate.group.Add;

/**
 * 运费项对象 mall_trans_fee_item
 * 
 * @author admin
 * @date 2023-04-21
 */
@TableName("mall_trans_fee_item")
public class TransFeeItem implements BaseEntity{

    /** 主键 */
    @Null(groups = Add.class, message="id必须为空")
    @TableId(type = IdType.AUTO)
    private String id;
    
    /** 运费模板id */
    private String transFeeTemplateId;
    
    /** 配送范围(1-全国, 0-指定区域) */
    @DictValid(message = "无效的配送范围")
    @Dict(dictCode = "delivery_scope")
    private Integer deliveryScope;

    /** 续件数量 */
    private BigDecimal continuousPiece;

    /** 首件数量 */
    private BigDecimal firstPiece;

    /** 续件费用 */
    private BigDecimal continuousFee;

    /** 首件费用 */
    private BigDecimal firstFee;
    
    /** 指定条件运费城市项 **/
    @TableField(exist=false)
    private List<Area> cityList;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    } 

    public void setTransFeeTemplateId(String transFeeTemplateId) {
        this.transFeeTemplateId = transFeeTemplateId;
    }

    public String getTransFeeTemplateId() {
        return transFeeTemplateId;
    }    
    
    public void setContinuousPiece(BigDecimal continuousPiece) {
        this.continuousPiece = continuousPiece;
    }

    public BigDecimal getContinuousPiece() {
        return continuousPiece;
    }    
    
    public void setFirstPiece(BigDecimal firstPiece) {
        this.firstPiece = firstPiece;
    }

    public BigDecimal getFirstPiece() {
        return firstPiece;
    }    
    
    public void setContinuousFee(BigDecimal continuousFee) {
        this.continuousFee = continuousFee;
    }

    public BigDecimal getContinuousFee() {
        return continuousFee;
    }    
    
    public void setFirstFee(BigDecimal firstFee) {
        this.firstFee = firstFee;
    }

    public BigDecimal getFirstFee() {
        return firstFee;
    }

	public List<Area> getCityList() {
		return cityList;
	}

	public void setCityList(List<Area> cityList) {
		this.cityList = cityList;
	}

	public Integer getDeliveryScope() {
		return deliveryScope;
	}

	public void setDeliveryScope(Integer deliveryScope) {
		this.deliveryScope = deliveryScope;
	}    
    

}
